package com.bitters.enums;

/**
 * @author thomashe
 * @date 2023/10/20/ 16:13
 * @description
 */
public enum ErrorCodeAndMsg {

    Number_does_not_exist("0001", "字段不存在"),
    Insufficient_Length("0002", "字段长度不足"),
    Number_is_empty("0003", "字段不能为空"),
    Network_error("9999", "网络错误，待会重试");

    private String code;
    private String msg;

    ErrorCodeAndMsg(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
